package it.uniba.di.cdg.jabber;

import java.util.ArrayList;
import java.util.List;

import it.uniba.di.cdg.xcore.econference.EConferenceContext;
import it.uniba.di.cdg.xcore.econference.IEConferenceManager;
import it.uniba.di.cdg.xcore.econference.internal.EConferenceHelper;
import it.uniba.di.cdg.xcore.multichat.service.Invitee;
import it.uniba.di.cdg.xcore.network.NetworkPlugin;
import it.uniba.di.cdg.xcore.ui.UiPlugin;
import junit.framework.TestCase;

public class CommunicationTest extends TestCase {
	
	@Override
	protected void setUp() throws Exception {		
		super.setUp();
		EConferenceHelper helper = new EConferenceHelper( UiPlugin.getUIHelper(), NetworkPlugin.getDefault().getHelper());
		EConferenceContext context = new EConferenceContext();
		List<Invitee> participants = new ArrayList<Invitee>();
		Invitee sammy = new Invitee("alessandro.brucoli@ugres.di.uniba.it", "Alessandro Brucoli", "", "", "");
		participants.add(sammy);
		context.setInvitees(participants);
		IEConferenceManager manager = helper.open(context);
		manager.open(context);
	}

}
